<div class="line-label">
  <%= page_entries_info(@materials_wish_lists) %>
</div>

<% if @materials_wish_lists.size > 0 %>
  <% paginated_section(@materials_wish_lists, options_will_paginate({:params => { :controller => :wish_lists, :action => :wish_list_materials_index}})) do %>
    <table>
      <thead>
        <tr>
          <th><%=t('activerecord.models.material')%></th>
          <!--th><%#= t('title_actions') %></th-->
        </tr>
      </thead>

      <tbody>
        <% actual_record = 0 %>
        <% @materials_wish_lists.each do |material_wish_list| %>
          <% actual_record += 1 %>
          <tr>
            <% @material = material_wish_list.material %>
            <td><%= render :partial => 'materials/material_info_for_list', :object => @material %></td>

            <!--
            <%# if actual_record == 1 %>
              <td></td>
            <%# else %>
              <td class="action"><%#= link_to t('btn_up'), wish_list_up_material_path(material_wish_list) %></td>
            <%# end %>
            <%# if actual_record == @total_materials_wish_lists %>
              <td></td>
            <%# else %>
              <td class="action"><%#= link_to t('btn_down'), wish_list_down_material_path(material_wish_list) %></td>
            <%# end %>
            -->
            <!--td class="action" align="center"><%#= link_to t('btn_show'), material_path(material_wish_list.material) %></td-->
            <!--
            <td class="action"><%#= link_to t('btn_destroy'), wish_list_delete_material_path(material_wish_list), :confirm => t('msg_sure_destroy?'), :method => :post%></td>
            -->
          </tr>
        <% end %>
      </tbody>
    </table>
  <% end %>
<% end %>